package com.hmdp.utils;

/**
 * ClassName: ILock
 * Package:
 * Description:
 *
 * @Author:xiaohei
 * @Create 2024/5/31 9:13
 * Version 1.0
 */
public interface ILock {

    /**
     * 尝试获取锁
     */
    boolean tryLock(long timeoutSec);

    /**
     * 释放锁
     */
    void unlock();
}
